package com.xueyi.system.sampleManager.domain.po;

import java.math.BigDecimal;
import java.time.LocalDateTime;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.xueyi.common.core.web.tenant.base.TBaseEntity;
import com.xueyi.system.sampleManager.domain.dto.SampleManagerDto;
import com.baomidou.mybatisplus.annotation.TableField;
import com.xueyi.common.core.annotation.Excel;

/**
 * 取样留样 持久化对象
 *
 * @author zlf
 */
@TableName(value = "base_sample_manager", excludeProperty = {"name", "sort"})
public class SampleManagerPo extends TBaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 取样名称
     */
    @Excel(name = "取样名称")
    @TableField("sample_name")
    private String sampleName;

    /**
     * 取样编码
     */
    @Excel(name = "取样编码")
    @TableField("sample_code")
    private String sampleCode;

    /**
     * 取样类型（1种子、2产品、3仪器、4设备）
     */
    @Excel(name = "取样类型", readConverterExp = "1=种子、2产品、3仪器、4设备")
    @TableField("sample_type")
    private String sampleType;

    /**
     * 取样人
     */
    @Excel(name = "取样人")
    @TableField("sample_user")
    private String sampleUser;

    /**
     * 取样人
     */
    @Excel(name = "取样人id")
    @TableField("sample_user_id")
    private String sampleUserId;

    /**
     * 联系方式
     */
    @Excel(name = "联系方式")
    @TableField("contact_details")
    private String contactDetails;

    /**
     * 单位名称
     */
    @Excel(name = "单位名称")
    @TableField("unit_name")
    private String unitName;

    /**
     * 数量
     */
    @Excel(name = "数量")
    @TableField("num")
    private BigDecimal num;

    /**
     * 状态（1启用、2停用）
     */
    @Excel(name = "状态", readConverterExp = "1=启用、2停用")
    @TableField("status")
    private String status;

    /**
     * 种植批次
     */
    @Excel(name = "种植批次)")
    @TableField("plant_id")
    private String plantId;

    /**
     * 批次
     */
    @Excel(name = "批次)")
    @TableField("batch")
    private String batch;

    /**
     * 企业名称
     */
    @Excel(name = "企业名称)")
    @TableField("company_name")
    private String companyName;

    /**
     * 操作时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Excel(name = "操作时间", width = 30, dateFormat = "yyyy-MM-dd")
    @TableField("operation_date")
    private LocalDateTime operationDate;

    /**
     * 取样数
     */
    @Excel(name = "取样数)")
    @TableField("sample_num")
    private String sampleNum;

    /**
     * 取样量
     */
    @Excel(name = "取样量)")
    @TableField("sample_mp")
    private String sampleMp;

    /**
     * 检验单号
     */
    @Excel(name = "检验单号)")
    @TableField("check_bacth")
    private String checkBacth;


    public String getBatch() {
        return batch;
    }

    public void setBatch(String batch) {
        this.batch = batch;
    }

    public String getCompanyName() {
        return companyName;
    }

    public void setCompanyName(String companyName) {
        this.companyName = companyName;
    }

    public LocalDateTime getOperationDate() {
        return operationDate;
    }

    public void setOperationDate(LocalDateTime operationDate) {
        this.operationDate = operationDate;
    }

    public String getSampleNum() {
        return sampleNum;
    }

    public void setSampleNum(String sampleNum) {
        this.sampleNum = sampleNum;
    }

    public String getSampleMp() {
        return sampleMp;
    }

    public void setSampleMp(String sampleMp) {
        this.sampleMp = sampleMp;
    }

    public String getCheckBacth() {
        return checkBacth;
    }

    public void setCheckBacth(String checkBacth) {
        this.checkBacth = checkBacth;
    }

    public String getPlantId() {
        return plantId;
    }

    public void setPlantId(String plantId) {
        this.plantId = plantId;
    }

    public String getSampleUserId() {
        return sampleUserId;
    }

    public void setSampleUserId(String sampleUserId) {
        this.sampleUserId = sampleUserId;
    }

    public void setSampleName(String sampleName) {
        this.sampleName = sampleName;
    }

    public String getSampleName() {
        return sampleName;
    }

    public void setSampleCode(String sampleCode) {
        this.sampleCode = sampleCode;
    }

    public String getSampleCode() {
        return sampleCode;
    }

    public void setSampleType(String sampleType) {
        this.sampleType = sampleType;
    }

    public String getSampleType() {
        return sampleType;
    }

    public void setSampleUser(String sampleUser) {
        this.sampleUser = sampleUser;
    }

    public String getSampleUser() {
        return sampleUser;
    }

    public void setContactDetails(String contactDetails) {
        this.contactDetails = contactDetails;
    }

    public String getContactDetails() {
        return contactDetails;
    }

    public void setUnitName(String unitName) {
        this.unitName = unitName;
    }

    public String getUnitName() {
        return unitName;
    }

    public void setNum(BigDecimal num) {
        this.num = num;
    }

    public BigDecimal getNum() {
        return num;
    }

    @Override
    public void setStatus(String status) {
        this.status = status;
    }

    @Override
    public String getStatus() {
        return status;
    }

}
